
import { put, call } from 'redux-saga/effects'
import { loginAction } from '../../actions/login/login'
export function* login(action) {
  const res = yield call(loginAction, action.payload)
  action.callback && action.callback(res)
}